<template>
  <div class="user-info">
    <img src="../../../assets/user-photo.png" alt="" />
    <div v-if="userInfo.type === 'student'">
      <div>{{ userInfo.name }}</div>
      <div>学号 {{ userInfo.num }}</div>
      <div>单位 {{ userInfo.company1 }}</div>
      <div>专业 {{ userInfo.major }}</div>
    </div>
    <div v-else>
      <div>{{ userInfo.name }}</div>
      <div>单位 {{ userInfo.company2 }}</div>
      <div>职称 {{ userInfo.title }}</div>
    </div>
  </div>
</template>

<script>
export default {
  name: "infoUser",
  props: ['type','userInfo'],
  data() {
    return {
    }
  },
  created() {
  },
  mounted() {
  },
  computed: {},//计算属性
}
</script>

<style scoped>

</style>
